__author__ = 'sean'

import redis
try:
    r = redis.StrictRedis(host='192.168.2.57', port=6379, db=0)
    info = r.info()
    for key in info.keys():
        print "{0}:{1}".format(key, info[key])

except:
    print "Not Connect to Redis .."
    exit(1)